fp=open('test.txt','w')
print('人生苦短,我用python',file=fp)
fp.close()